﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ECMessageQueue;

namespace FESSC_WORKBENCH
{
    public class OperationDict
    {
        public Dictionary<string, Func<MessageQueue.MQMESSAGE, bool>> rsOps = new Dictionary<string, Func<MessageQueue.MQMESSAGE, bool>>
        {
            { "NULL" , null }
            //{ "USERLOGIN",OP_USERLOGIN.checkUserLogin }
        };

        public void reg(string opCode, Func<MessageQueue.MQMESSAGE, bool> func)
        {
            if(rsOps.ContainsKey(opCode)) rsOps[opCode] = func;
            else rsOps.Add(opCode, func);
        }
    }
}
